Parameters
- jobGroup
- The name of the group to which the job belongs.
- workspaceName
- Workspace in which class must be started.
- userName
- The user on whose behalf class will be started.
- parameters
- The parameters that will be passed to the class.
- isSystemUser
- System user flag. If
true
, Job will run on behalf of the user obtained from"System operations user"
system setting.
Type Parameters
- T
- Type of a job.
In contrast to ScheduleImmediateJob<T>, the TriggerJob<T>(String,String,String,IDictionary<String,Object>,Boolean) triggers job immediately, while ScheduleImmediateJob<T> schedules job with next fire time set to now. As a result, delay between TriggerJob<T>(String,String,String,IDictionary<String,Object>,Boolean) call and actual trigger fire can be smaller than one after calling ScheduleImmediateJob<T>.
If job with the same name within the same group already exists it will be recreated.
If trigger can not be fired immediately it will be fired as soon as possible.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2